require('jsencrypt')


function encrypt(message,publicKey){
  var encrypt=new JSEncrypt();
  encrypt.setPublicKey(publicKey);	//	 publicKey为公钥
  const txt = encrypt.encrypt(message);
  console.log(message);
  console.log(publicKey);
  console.log(txt);
  return txt;
}

export default encrypt